package com.bawei.home.api

import com.bawei.common.entity.CommendEntity
import com.bawei.home.entity.SimpleTypeEntity
import com.bawei.common.entity.SimpleVideoEntity
import com.bawei.network.BaseResponse
import retrofit2.http.GET
import retrofit2.http.Query


/**
 * Author: Jason Zhang
 * Date: 2024/2/29
 * Desc: Home页面接口类
 */
interface HomeServerApi {

    //获取视频Tab类型
    @GET("/videotype/getSimpleType")
    suspend fun getSimpleType(): BaseResponse<List<SimpleTypeEntity>>

    //根据Tab类型获取视频列表
    @GET("/videosimple/getSimpleVideoByChannelId")
    suspend fun getSimpleVideoByChannelId(@Query("channelId") channelId: String, @Query("page") page: Int, @Query("pagesize") pageSize: Int): BaseResponse<List<SimpleVideoEntity>>

    //获取推荐视频列表
    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getRecommendSimpleVideo(@Query("page") page: Int, @Query("pagesize") pageSize:Int): BaseResponse<List<SimpleVideoEntity>>

    //获取视频评论列表
    @GET("/comment/getCommentByUserId")
    suspend fun getVideoCommends(@Query("datatype") dataType: Int, @Query("itemid") itemId:String): BaseResponse<List<CommendEntity>>






}